package VolatileDemo;

public class Test {
    public static void main(String[] args) {
        Girl girl = new Girl();
        girl.setName("小美");
        girl.start();

        Boy boy = new Boy();
        boy.setName("小明");
        boy.start();
    }
}
